<%@page import="upcweb.modelo.ClsClub"%>
<%@page import="java.util.ArrayList"%>	 

		<%	

		        String IDclub = "";
		        ArrayList<ClsClub> arrayClub = null;
				String Noclub = "", Nodireccion ="", Nociudad = "", Notelefono = "";
				if (request.getAttribute("busquedaclub")!=null)
				{
					
					arrayClub = (ArrayList<ClsClub>)request.getAttribute("busquedaclub");
				
					
					for(ClsClub ClubBE:arrayClub){
			
						IDclub = String.valueOf(ClubBE.getCo_club());
						Noclub = ClubBE.getNo_club();
						Nodireccion = ClubBE.getTx_direccion();
						Nociudad = ClubBE.getTx_ciudad();
						Notelefono = ClubBE.getNo_telefono();
					
					}
					
					
				}
				
	  
		%>



	
	      	<div class="span8">      		
	      		

	      		
	      		
	      		
	      		
	      		
	      		<div class="widget ">
	      			
	      			<div class="widget-header">
	      				<i class="icon-user"></i>
	      				<h3>Bandeja Club</h3>

	  				</div> <!-- /widget-header -->
					

					
					
					<div class="widget-content">
						
						

						
							<div>
		<table style="width: 100%;" >


      	<tr>             
            <td>Club:</td>
            <td><input id="txt_b_club" name="txt_b_club" type="text" maxlength="50" value=""  /></td>            
            <td>Direccion:</td>
            <td><input id="txt_b_direccion" name="txt_b_direccion" type="text" maxlength="50" value=""  /></td>                                  
        </tr>
        <tr align="center">
        	<td colspan="4">
        		<input id="btn_Buscar" name="btn_Buscar" type="button" value="Buscar" class="btn btn-primary" onclick="BusquedaClub('','0');"/>
        	</td>        	
        </tr>
        <tr>
        	<td colspan="4"></td>
        </tr>
   
    </table>
    </div>	
						
						
						<div class="tabbable">
						
						
						<ul class="nav nav-tabs">
						  <li class="<%=request.getAttribute("Tab01")%>">
						    <a href="index.html#profile" data-toggle="tab" onclick="BusquedaClub('','0');" >Listado Club</a>
						  </li>
						  <li class="<%=request.getAttribute("Tab02")%>">
						  <a href="index.html#settings" data-toggle="tab" 
						  onclick="BusquedaClub('99999','1');" >Crear</a></li>
						</ul>
						
						<br>
						
							<div class="tab-content">
								<div class="tab-pane <%=request.getAttribute("Tab01")%>" id="profile">
								
				
								<div class="widget widget-table action-table">
						

					
					<div class="widget-content">
						
						<table class="table table-striped table-bordered">
							<thead>
								<tr>
									<th>Nro Club</th>
									<th>Club</th>
									<th>Direccion</th>
									<th>Ciudad</th>
									<th>Telefono</th>
									<th>Estado</th>	
									<th class="td-actions"></th>	
								
								</tr>
							</thead>
							<tbody>
<%
if (request.getAttribute("busquedaclub")!=null)
{
ArrayList<ClsClub> ListarClubList = (ArrayList<ClsClub>)request.getAttribute("busquedaclub");

       for(ClsClub ClubBE:ListarClubList){
	%>
								<tr>
									<td><%=ClubBE.getCo_club() %></td>
									<td><%=ClubBE.getNo_club() %></td>
									<td><%=ClubBE.getTx_direccion() %></td>								
									<td><%=ClubBE.getTx_ciudad() %></td>
									<td><%=ClubBE.getNo_telefono() %></td>
									<td><%=ClubBE.getFl_activo() %></td>
	                         			<td class="td-actions"><input type="button" id="idmat"
												value="Editar" class="btn btn-primary"
												onclick="BusquedaClub('<%=ClubBE.getCo_club()%>','1')"></td>
												
								
									
								</tr>
	<%
}
}
%>
								</tbody>
							</table>
						
					</div> <!-- /widget-content -->
				
				</div> <!-- /widget -->
				
									
		
								</div>
								
								<div class="tab-pane <%=request.getAttribute("Tab02")%>" id="settings">
									
								

<form id="frm_busquedaclub" name="frm_busquedaclub"  class="form-horizontal"  method="POST">


											<div class="control-group">
												<label class="control-label" for="accountusername">Nro Club</label>
												<div class="controls">
													<input type="text" class="input-large" name="tx_co_club" id="tx_co_club" disabled="disabled" value="<%=IDclub%>">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="emailserver">Club</label>
												<div class="controls">
													<input type="text" class="input-large"  id="tx_club" value="<%=Noclub%>">
												</div>
													 	
											</div>
											
											<div class="control-group">
												<label class="control-label" for="emailserver">Direccion</label>
												<div class="controls">
													<input type="text" class="input-large" id="tx_direccion" value="<%=Nodireccion%>">
												</div>
											</div>
											
											<div class="control-group">
												<label class="control-label" for="emailserver">Ciudad</label>
												<div class="controls">
													<input type="text" class="input-large" id="tx_ciudad" value="<%=Nociudad%>">
												</div>
											</div>
											
											<div class="control-group">
												<label class="control-label" for="emailserver">Telefono</label>
												<div class="controls">
													<input type="text" class="input-large" maxlength="9" id="tx_telefono" value="<%=Notelefono%>" onKeyDown="return Solo_Numero(event);">
												</div>
											</div>


											<br />
											
											<div class="form-actions">
												<button type="button" onclick="OperacionClub(this);" class="btn btn-primary">Guardar</button>
												 <button class="btn">Limpiar</button>
											</div>
											
									
											</form>   
								
								
								</div>
								
							</div>
						  
						  
						</div>
						
						
						
				  			
						
					</div> <!-- /widget-content -->
						
				</div> <!-- /widget -->
	      		
		    </div> <!-- /span8 -->
	      	
	      	      	
	      	<div class="span4">
				
				
				<div class="widget widget-box">
					
					<div class="widget-header">
	      				<h3>Considerar los siguientes puntos</h3>
	  				</div> <!-- /widget-header -->
					
					<div class="widget-content">
						
							
						<p>Tener en cuenta en ingresar correctamente los datos correo para generar la reserva correctamente.</p>
						
						
						<p></p>
						
					</div> <!-- /widget-content -->
					
				</div> <!-- /widget-box -->
									
		      </div> <!-- /span4 -->
		      
	 	
